﻿<UserControl x:Class="ListBoxProject.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    FontFamily="Trebuchet MS" FontSize="11"
    Width="400" Height="300">
    <Grid x:Name="LayoutRoot" Background="White">
        <ListBox x:Name="theList" SelectionChanged="ListBox_SelectionChanged">
            <StackPanel Orientation="Horizontal">
                <Rectangle Fill="Black" Height="100" Width="100"></Rectangle>
                <Image Height="100" Width="100" Source="sl.jpg"/>
                <TextBlock Text="Item 1"></TextBlock>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Rectangle Fill="Black" Height="100" Width="100"></Rectangle>
                <Image Height="100" Width="100" Source="sl.jpg"/>
                <TextBlock Text="Item 2"></TextBlock>
            </StackPanel>
        </ListBox>


    </Grid>
</UserControl>
